<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ include file="/common/taglibs.jsp"%>
<link rel="stylesheet" type="text/css" href="${ctx}/styles/pop.css" media="screen"/>
<script type="text/javascript" src="${ctx}/scripts/jquery/jquery.form.js"></script>
<div class="pop_roster_request">
	<div class="pop_roster_request_tit">
		设置组访问权限
	</div>
	<form id="f_team_visit" action="<c:url value='/team/manage/savevisit.do'/>" method="post">
		<input type="hidden" name="teamid" value="${teamid}">
		<select name="property.propertyValue">
			<option value="1" <c:if test="${property.propertyValue == 1}">selected</c:if>>所有人</option>
			<option value="2" <c:if test="${property.propertyValue == 2}">selected</c:if>>组员</option>
		</select>
		<br/>
		<button type="submit" class="btn3" >保存访问权限</button>
	</form>
</div>
<script>
$("#f_team_visit").ajaxForm({
	dataType:'xml', 
	type:'post',
	success: processTeamVisitResult
});
function processTeamVisitResult(result){
	if($(result).find('result').text().toUpperCase().indexOf("TRUE") >= 0){
		$.fn.colorbox.close();
	}else{
		alert("设置出错!");
	}
}
</script>